$('.pagination').append('<li><input type="text"  class="hf_tiaozhuan" value=""/> <button class="hf_tiaozhuan hf_go btn btn-primary size-S">跳转</button></li>');
$('.hf_go').click(function(){
  page=$(this).prev().val(); 
  if(/p=/i.test(location.href)) {
      location.href=location.href.substr(0,location.href.indexOf('p=')+2)+page;
  }else{
      if(/\?/i.test(location.href)){
          location.href=location.href+'&p='+page;
      }else{
          location.href=location.href+'?p='+page;
      }
  }
});